home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / iddict.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  1.8 KB  |  49 lines

  1. /* Copyright (C) 1992, 1996, 1997, 1998, 1999 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: iddict.h,v 1.2 2000/09/19 19:00:42 lpd Exp $ */
  20. /* Dictionary API with implicit dict_stack argument */
  21.  
  22. #ifndef iddict_INCLUDED
  23. #  define iddict_INCLUDED
  24.  
  25. #include "idict.h"
  26. #include "icstate.h"        /* for access to dict_stack */
  27.  
  28. /* Define the dictionary stack instance for operators. */
  29. #define idict_stack (i_ctx_p->dict_stack)
  30.  
  31. #define idict_put(pdref, key, pvalue)\
  32.   dict_put(pdref, key, pvalue, &idict_stack)
  33. #define idict_put_string(pdref, kstr, pvalue)\
  34.   dict_put_string(pdref, kstr, pvalue, &idict_stack)
  35. #define idict_undef(pdref, key)\
  36.   dict_undef(pdref, key, &idict_stack)
  37. #define idict_copy(dfrom, dto)\
  38.   dict_copy(dfrom, dto, &idict_stack)
  39. #define idict_copy_new(dfrom, dto)\
  40.   dict_copy_new(dfrom, dto, &idict_stack)
  41. #define idict_resize(pdref, newmax)\
  42.   dict_resize(pdref, newmax, &idict_stack)
  43. #define idict_grow(pdref)\
  44.   dict_grow(pdref, &idict_stack)
  45. #define idict_unpack(pdref)\
  46.   dict_unpack(pdref, &idict_stack)
  47.  
  48. #endif /* iddict_INCLUDED */
  49.